# Contributor: Sean McAvoy <seanmcavoy@gmail.com>
# Maintainer: Sean McAvoy <seanmcavoy@gmail.com>
pkgname=py3-subprocess-tee
pkgver=0.3.5
pkgrel=1
pkgdesc="subprocess.run drop-in replacement that supports a tee mode"
url="https://github.com/pycontribs/subprocess-tee"
arch="noarch"
license="MIT"
depends="python3 py3-enrich"
makedepends="py3-setuptools py3-setuptools_scm py3-wheel"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/s/subprocess-tee/subprocess-tee-$pkgver.tar.gz"
builddir="$srcdir/subprocess-tee-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir:$PYTHONPATH" pytest -k 'not test_molecule'
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
47de075e7b6c75598dac0ad1899e1cce9dc1131b49c35ccade2b67c8d2a2d0248ce22a20c336519ff00bfd57269613bc663012e48cf0afa087c93ee74e18e4d4  subprocess-tee-0.3.5.tar.gz
"
